<?php
	include('public.php');
	
	if(empty($_POST)==false){
		//$_POST['content']=addslashes($_POST['content']);
		//$_POST['content']=stripslashes($_POST['content']);
		/*if(empty($_POST['ftime'])){
			$_POST['ftime']=time();
		}else{
			$_POST['ftime']=strtotime($_POST['ftime']);
		}
		var_dump($_POST);exit;*/
		
		db_add('news');
	}else{
		include('template/header.html');
		include('template/news_add.html');
		include('template/footer.html');
	}